// 订单管理api
/*
 * @Description:
 * @Author: lucl
 * @Date: 2021-06-23 19:49:37
 * @LastEditors: lucl
 * @LastEditTime: 2021-06-25 16:44:55
 */
import { get, post } from '@/utils/request'
// 分页查询员工信息
export function baseUser_pageQuery(data) {
  return get('/baseUser/pageQuery', data)
}
// 分页查询订单相关信息
export function pageQuery(data) {
  return get('/order/pageQuery', data)
}
// 接单
export function tekeOrder(data) {
  return get('/order/takeOrder', data)
}
// 提交订单
export function submitOrder(data) {
  return post('/order/submitOrder', data)
}
// 员工服务结束
export function serviceCompleteOrder(data) {
  return get('/order/serviceCompleteOrder', data)
}
// 派单
export function sendOrder(data) {
  return get('/order/sendOrder', data)
}
// 拒绝订单
export function rejectOrder(data) {
  return get('/order/rejectOrder', data)
}
// 通过id查询订单详情
export function findById(data) {
  // console.log(data);
  return get('/order/findById', data)
}
// 通过订单删除
export function deleteById(data) {
  return get('/order/deleteById', data)
}
// 确认订单
export function confirmOrder(data) {
  return get('/order/confirmOrder', data)
}
// 取消订单
export function cancelSendOrder(data) {
  return get('/order/cancelSendOrder', data)
}
